import axiosApi from './AxiosApi.js'

const apiList = {
  page: `http://localhost:8186/order/page`,
  findAll: `http://localhost:8186/cargo/findAll`,
  //search: `http://localhost:8186/order/list`,
  showDispatch:`http://localhost:8186/order/orderId/{orderId}/{taskType}`,
}

export default {
  page (data) {
    return axiosApi({
      method: 'POST',
      url: apiList.page,
      data
    })
  },
  findAll (tranOrderId,orderId) {
    return axiosApi({
      method: 'GET',
      url: apiList.findAll,
      data:{
        tranOrderId:tranOrderId,
        orderId:orderId
      }
    })
  },
  /* search (data) {
    return axiosApi({
      method: 'POST',
      url: apiList.search,
      data
    })
  }, */
  showDispatch (orderId,taskType) {
    return axiosApi({
      method: 'GET',
      url: `http://localhost:8186/order/orderId/${orderId}/${taskType}`,
    })
  },

}
